<?php
	// Définition des constantes de connexion
	define('LOGIN', "web_sem");
	define('PASSWORD', "SrMVHa87UYNAqrtH");
	define('HOST',"peyetraspberry.ddns.net");
	define('BASE', "web_sem");
	
	error_reporting(E_ALL ^ E_DEPRECATED);
	
	function getConnexion() {
		return new PDO("mysql:host=".HOST.";dbname=".BASE, LOGIN, PASSWORD, array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'));
	}
?>